@import '../../../../common/_utils/style/mixins/mixins.scss';
@import '../../../../common/_utils/style/theme/theme.scss';

@include b(tdtLineResults) {
  padding: 8px 0;
  .link-to-points, .title {
    line-height: 20px;
    padding: 0 16px;
  }
  .link-to-points {
    display: block;
    font-weight: 700;
    color: $primary-color;
    margin-bottom: 9px;
  }
  .title {
    margin-bottom: 7px;
  }
  .content {
    padding: 0 8px;
    .line-groups {
      padding: 0;
      list-style: none;
      .line-item {
        margin-bottom: 10px;
        .cover-info {
          display: flex;
          align-items: center;
          height: 88px;
          border-bottom: 1px solid $border-color-split;
          background-color: $collapse-card-secondary-bg;
        }
        .name, .line-info{
          height: 100%;
        }
        .name {
          line-height: 88px;
          text-align: center;
          max-width: 20%;
          min-width: 50px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          background: $collapse-card-secondary-heard-bg;
        }
        .line-info {
          flex: 1;
          padding: 8px 0;
          .description-holder {
            display: flex;
            align-items: center;
            padding: 0 4px;
          }
          .description {
            font-size: 14px;
            line-height: 20px;
            margin-left: 4px;
            > div {
              &:first-child {
                margin-bottom: 4px;
              }
            }
          }
          .time {
            padding-left: 24px;
          }
        }
        p {
          padding: 0;
          margin: 0;
          &.time {
            margin-top: 8px;
          }
        }
        .detail-info {
          background-color: $collapse-card-secondary-bg;
          .detail-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            p {
              line-height: 32px;
              &.show-details {
                cursor: pointer;
                color: $primary-color;
              }
              i {
                font-size: 12px;
              }
            }
          }
          .lines {
            list-style: none;
            margin: 2px 0 0;
            padding: 0;
            li {
              padding: 2px 24px;
              cursor: pointer;
              &:hover {
                color: $hover-color !important;
              }
              &.active-station {
                color: $primary-color !important;
              }
            }
          }
        }
      }
    }
  }
}
